package com.study.ioc.demo.bean;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class TestBeanOne {

    @Autowired
    private TestBeanTwo testBeanTwo;

    private String name;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public TestBeanTwo getTestBeanTwo() {
        return testBeanTwo;
    }

    public void setTestBeanTwo(TestBeanTwo testBeanTwo) {
        this.testBeanTwo = testBeanTwo;
    }
}
